var http = require('http')

var server = http.createServer()

server.on('request', function(request, response){

    response.setHeader('Content-Type', 'text/plain; charset=utf-8')
    response.end('哈哈哈')
})

server.listen(3000, function(){
    console.log('服务器启动成功了')
})